<?php

declare(strict_types=1);
/**
 * This file is part of Hyperf.
 *
 * @link     https://www.hyperf.io
 * @document https://hyperf.wiki
 * @contact  group@hyperf.io
 * @license  https://github.com/hyperf/hyperf/blob/master/LICENSE
 */

namespace App\Model;

/**
 * @property int $user_id 
 * @property string $user_name 用户名称
 * @property string $account 账号
 * @property string $password 密码
 * @property int $gender 性别
 * @property string $avatar 头像
 * @property string $ip 用户ip
 * @property string $login_time 登录时间
 * @property string $create_time 创建时间
 * @property string $update_time 修改时间
 * @property int $status 用户状态
 */
class User extends Model
{
    /**
     * The table associated with the model.
     */
    protected ?string $table = 'user';

    /**
     * The attributes that are mass assignable.
     */
    protected array $fillable = ['user_id', 'user_name', 'account', 'password', 'gender', 'avatar', 'ip', 'login_time', 'create_time', 'update_time', 'status'];

    /**
     * The attributes that should be cast to native types.
     */
    protected array $casts = ['user_id' => 'integer', 'gender' => 'integer', 'status' => 'integer'];
}
